package com.service;

import com.dao.Accountdao;
import com.domian.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AccountserviceImpl implements Accountservice {
    @Autowired
    Accountdao accountdao;
    @Override
    public List<Account> findall() {
        System.out.println("寻找账号");
        return accountdao.findall();
    }

    @Override
    public void save(Account account) {
            System.out.println("储存账户");
            accountdao.save(account);
    }
}
